package cn.edu.tsinghua.cic.ccss.dto;

import org.forten.dataio.excel.model.ExportCellDef;
import org.forten.dataio.excel.model.WorkbookDef;
import org.forten.utils.common.StringUtil;

@WorkbookDef(headText = { "工作证号", "姓名", "性别", "院系部处", "职务级别", "邮件地址", "手机号码",
		"办公电话", "备注" })
public class CadreDto4Export implements SuperCadreDto {

	private static final long serialVersionUID = -1001488421734751983L;

	private Long id;
	@ExportCellDef(colNum = 0)
	private String cardNum;
	@ExportCellDef(colNum = 1)
	private String name;
	@ExportCellDef(colNum = 2)
	private String sex;
	@ExportCellDef(colNum = 3)
	private String unitName;
	@ExportCellDef(colNum = 4)
	private String jobLevel;
	@ExportCellDef(colNum = 5)
	private String email;
	@ExportCellDef(colNum = 6)
	private String mobileNum;
	@ExportCellDef(colNum = 7)
	private String officeTel;
	@ExportCellDef(colNum = 8)
	private String memo;
	private String titles;
	private String postTime;
	private String nation;
	private String education;
	private String party;
	private String birthday;
	private String duty;

	public CadreDto4Export() {
		super();
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCardNum() {
		return cardNum;
	}

	public void setCardNum(String cardNum) {
		this.cardNum = cardNum;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getPostTime() {
		return postTime;
	}

	public void setPostTime(String postTime) {
		this.postTime = postTime;
	}

	public String getNation() {
		return nation;
	}

	public void setNation(String nation) {
		this.nation = nation;
	}

	public String getEducation() {
		return education;
	}

	public void setEducation(String education) {
		this.education = education;
	}

	public String getParty() {
		return party;
	}

	public void setParty(String party) {
		this.party = party;
	}

	public String getBirthday() {
		return birthday;
	}

	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	public String getUnitName() {
		return unitName;
	}

	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	public String getJobLevel() {
		return jobLevel;
	}

	public void setJobLevel(String jobLevel) {
		this.jobLevel = jobLevel;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getMobileNum() {
		return mobileNum;
	}

	public void setMobileNum(String mobileNum) {
		this.mobileNum = mobileNum;
	}

	public String getOfficeTel() {
		return officeTel;
	}

	public void setOfficeTel(String officeTel) {
		this.officeTel = officeTel;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	/**
	 * @return the duty
	 */
	public String getDuty() {
		return duty;
	}

	/**
	 * @param duty
	 *            the duty to set
	 */
	public void setDuty(String duty) {
		this.duty = duty;
	}

	/**
	 * @return the titles
	 */
	public String getTitles() {
		return titles;
	}

	/**
	 * @param titles
	 *            the titles to set
	 */
	public void setTitles(String titles) {
		if (StringUtil.hasText(titles))
			this.titles = titles.trim();
		else
			this.titles = "";
	}
}
